Allow updating to a precise revision
authorAlex Crichton <alex@alexcrichton.com>
Tue, 23 Sep 2014 14:30:16 +0000 (07:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 25 Sep 2014 15:51:45 +0000 (08:51 -0700)
commitc098a9a7a919e002436cf7b08cbf53f2ef906918
treed122f72bf488d6a33eabca411d80804e0c91aa7b
parent3b814b64c2120c8aaf20eaef6bdc3ff96271d6c6
Allow updating to a precise revision

This commit adds a flag, --precise, to cargo update. This flag is used to update
a dependency to precisely an exact revision (or branch) as part of an update
step. For git repositories the argument is some form of reference, while
registry packages this will be a version number.

The flag --precise forces a non-aggressive update and will fail if the
--aggresive flag is specified.

Closes #484
src/bin/update.rs
src/cargo/ops/cargo_generate_lockfile.rs
src/cargo/ops/mod.rs
src/cargo/util/config.rs
tests/test_cargo_compile_git_deps.rs